<%@page contentType="text/html; charset=UTF-8"%>
<jsp:useBean id="action" scope="request"
	class="swd.work.code_generator.Action" />
<jsp:useBean id="view" scope="request"
	class="swd.work.code_generator.View" />
<jsp:setProperty name="view" property="*" />
<%
	if (action.action(pageContext).equals("login")) {
		return;
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>程式產生器</title>
<LINK HREF="/SWD/workflow.css" REL="stylesheet" TYPE="text/css">
<jsp:include flush="true" page="../pub/setServerInfoForJS.jsp" />
<script type="text/javascript" language="javascript1.2"
	src="/PUBPAGE/general/commscript.js"></script>
<script type="text/javascript" language="javascript1.2"
	src="/SWD/general/swd.js"></script>
<script type="text/javascript" language="javascript1.2"
	src="/SWD/general/code_generator.js"></script>
</head>
<body bgcolor="#ffffff">
<TABLE HEIGHT="20" BORDER="0" CELLPADDING="0" CELLSPACING="0">
	<TR>
		<TD BACKGROUND="/SWD/pub_images/title_bg.gif">
		<DIV ALIGN="LEFT"><IMG SRC="/SWD/pub_images/title01.gif"
			WIDTH="18" HEIGHT="24" HSPACE="0"><IMG
			SRC="/SWD/pub_images/glass.gif" WIDTH="12" HEIGHT="8"></DIV>
		</TD>
		<TD ALIGN="LEFT" HEIGHT="20" VALIGN="MIDDLE"
			BACKGROUND="/SWD/pub_images/title_bg.gif" CLASS="TITLE">阿強三號
		<TD BACKGROUND="/SWD/pub_images/title_bg.gif">
		<DIV ALIGN="RIGHT"><IMG SRC="/SWD/pub_images/glass.gif"
			WIDTH="12" HEIGHT="8"><IMG SRC="/SWD/pub_images/title02.gif"
			WIDTH="18" HEIGHT="24" HSPACE="0"></DIV>
		</TD>
	</TR>
</TABLE>
<br>
<form action="<%=request.getRequestURI()%>" method="POST">
<table BORDER="0" WIDTH="540px" CELLSPACING="1" CELLPADDING="0">
	<tr>
		<td class="td_head" nowrap>登入工號：</td>
		<td class="td_content"><%=session.getAttribute("u_id").toString()%></td>
	</tr>
	<tr>
		<td class="td_head" nowrap>系統代碼：</td>
		<td class="td_content"><input type="text" size="30" name="sysNO"
			onchange="javascript:evt_sys_no_onchange(this);"
			class="input_window hand"
			ondblclick="javascript:evt_sys_no_ondbclick(this);"
			value="<%=(view.getSysNO() == null ? "" : view.getSysNO())%>" /></td>
	</tr>
	<tr>
		<td class="td_head" nowrap>產生程式：</td>
		<td class="td_content"><input type="text" size="30" id="prgNO"
			name="prgNO" onchange="javascript:evt_prg_no_onchange(this);"
			class="input_window hand"
			ondblclick="javascript:evt_prg_no_ondbclick(this);"
			value="<%=(view.getPrgNO() == null ? "" : view.getPrgNO())%>" /></td>
	</tr>
	<tr>
		<td class="td_head" nowrap>產生器版本：</td>
		<td class="td_content"><input type="radio"
			name="generator_template" value="java"
			onclick="javascript:evt_swd_version_onclick(this);" />Java &amp;
		JSP(V1)&nbsp;&nbsp;&nbsp;&nbsp; <input type="radio"
			name="generator_template" checked="checked" value="dotnet"
			onclick="javascript:evt_swd_version_onclick(this);" />.NET for
		C#(V2)</td>
	</tr>
	<tr>
		<td class="td_head" nowrap>Framework 版本：</td>
		<td class="td_content"><select name="frameworkVersion">
			<option id="opt_alpha_10" value="alpha1.0">ALPHA Framework
			1.0</option>
			<option id="opt_alpha_20" value="alpha2.0">ALPHA Framework
			2.0</option>
			<option id="opt_.net_11" value=".net1.1">.NET Framework 1.1</option>
			<option id="opt_.net_20" value=".net2.0">.NET Framework 2.0</option>
			<option id="opt_.net_35" value=".net3.5" selected>.NET Framework 3.5</option>
		</select></td>
	</tr>
	<tr>
		<td class="td_head" nowrap>產生物件：</td>
		<td class="td_content">
		<table id="tbl_gen_java" style="display: none">
			<tr>
				<td><input type="checkbox" name="objType" value="jsp" />JSP <input
					type="checkbox" name="objType" value="action" />Action Bean <input
					type="checkbox" name="objType" value="view" /> View Bean <input
					type="checkbox" name="objType" value="business" /> Business Bean <input
					type="checkbox" name="objType" value="flow" />Flow Bean <input
					type="checkbox" name="objType" value="javascript" />Java Script</td>
				<td>此列全選</td>
			</tr>
			<tr>
				<td><input type="checkbox" name="objType" value="MultiLang" />Multi-Lang.properties
				<input type="checkbox" name="objType" value="WEB_Config" />WEB_Config.properties
				<input type="checkbox" name="objType" value="login" />Login ＆
				Logout Page <input type="checkbox" name="objType" value="pubpage" />PUBPAGE
				WAR</td>
				<td>此列全選</td>
			</tr>
		</table>
		<table id="tbl_gen_dotnet">
			<tr>
				<td>
				<div id="use_table_list" style="overflow: scroll; height: 500px"></div>
				</td>
				<td valign="top"><input type="checkbox" name="objType"
					value="VO" />VO<br />
				<input type="checkbox" name="objType" value="VO_List" />VO List<br />
				<input type="checkbox" name="objType" value="DAO_Base" />DAO Base<br />
				<input type="checkbox" name="objType" value="DAO_Concrete" />DAO
				Concrete<br />
				<input type="checkbox" name="objType" value="BLL_Base" />BLL Base<br />
				<input type="checkbox" name="objType" value="BLL_Concrete" />BLL
				Concrete<br />
				</td>
			</tr>
		</table>
		</td>
	</tr>
	<tr>
		<td class="td_head" nowrap></td>
		<td class="td_content"><input type="button" value="產生"
			class="button b_normal" style="float: right"
			onclick="javascript:evt_btn_gen_code_onclick();" /></td>
	</tr>
</table>
<input type="hidden" name="prgAction" value="<%=view.getPrgAction()%>" />
</form>

</body>
</html>